package com.qf.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qf.business.dao.StudentDao;
import com.qf.business.entity.Student;
import com.qf.business.service.StudentService;
import org.springframework.stereotype.Service;

/**
 * 学生表(Student)表服务实现类
 *
 * @author makejava
 * @since 2022-05-17 14:50:51
 */
@Service
public class StudentServiceImpl extends ServiceImpl<StudentDao, Student> implements StudentService {

    @Override
    public Student login(String username, String password) {
        Student student = super.query()
                .eq("username", username)
                .eq("password", password)
                .one();
        return student;
    }
}
